<?php

namespace apiend\modules\user\controllers;

use Yii;
use apiend\components\Controller;
use apiend\modules\user\models\UserCenterDashboardLogic;

/**
 * 用户中心
 * 
 * @author emhome <emhome@163.com>
 * @since 1.0
 */
class DefaultController extends Controller {

    /**
     * @inheritdoc
     */
    public $modelClass = UserCenterDashboardLogic::class;

    /**
     * @inheritdoc
     */
    public function actionIndex() {
        /* @var $model UserCenterDashboardLogic */
        $model = new $this->modelClass;
        $model->user = $this->user;
        return $model->toArray();
    }

}
